const getters = {
    permission_routes: state => { 
        if(state.login.routes && state.login.routes.length > 0) {
            return state.login.routes
        } else {
            let routes = sessionStorage.getItem("routes") ? JSON.parse(sessionStorage.getItem("routes")) : []
            return routes
        }
     },
}
export default getters